#!/usr/bin/env bash

\cp resources/app_icon.png src/ohos/app/ohos_hap/AppScope/resources/base/media/app_icon.png
\cp resources/product_logo_32.png src/ohos/app/ohos_hap/AppScope/resources/base/media/product_logo_32.png
\cp resources/startIcon.png src/ohos/app/ohos_hap/AppScope/resources/base/media/startIcon.png

rm -rf src/ohos_sdk
cp -r src/third_party/ohos_sdk src

cd src

git apply --exclude='ohos/app/ohos_hap/AppScope/resources/base/media/app_icon.png' --exclude='ohos/app/ohos_hap/AppScope/resources/base/media/product_logo_32.png' --exclude='ohos/app/ohos_hap/AppScope/resources/base/media/startIcon.png' ../patches/electron.patch
